package com.itheima.a03oopextendsdemo3;

public class Student extends Person{

    public Student() {
        super();
        System.out.println("Student类的无参构造方法");
    }
    public Student(String name, int age) {
        super(name, age);
        System.out.println("Student类的构造方法");

    }
    public void study(){
        System.out.println("学习");
        System.out.println(name);
        System.out.println(super.name);
    }
}
